package com.yidu.menuProject.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.yidu.menuProject.action.vo.FoodVo;
import com.yidu.menuProject.model.FoodModel;
import com.yidu.menuProject.model.TuserModel;

public interface FoodModelMapper {
    int deleteByPrimaryKey(String foodId);

    int insert(FoodModel record);

    int insertSelective(FoodModel record);

    FoodModel selectByPrimaryKey(String foodId);

    int updateByPrimaryKeySelective(FoodModel record);

    int updateByPrimaryKey(FoodModel record);
    int deleteFood(FoodModel food);
    /**
     * 查询出所有的菜
     * @return
     */
    List<FoodModel>selectFindAllFoodHWT(String mealId);
    
    int deleteByPrimaryKey(FoodVo vo);

    int insert(FoodVo vo);
    
    /**
     * 查询订单 
     * @return 集合
     */
    @Select("select * from food")
    public List<FoodModel> findOrderFood();
    
    List<FoodModel> selectfoodAll(String mealId,@Param("foodName")String foodName,@Param("vo")FoodVo vo);
    int selectcount(FoodVo vo);
    
    public FoodModel findMealId(String keepId);
    
    public int delete(String meal);
    
}